package app.thread;

/**
 * Created by xfw on 17-6-12.
 */
public class MyThreadRunnable implements Runnable
{
    private int count=15;
    public MyThreadRunnable() {
    }

    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println(Thread.currentThread().getName() + "运行  count= " + count--);
            try {
                Thread.sleep((int) Math.random() * 10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
